package concept.misc;

public class MathLab
{
	static void doRandom()
	{
		for(int i=0; i<100; i++)
		{
			double d = Math.random();
			int j = (int)(d*100);
			System.out.printf("%2$.15f -> %1$d\n", j, d);
		}
	}
	static void doPI()
	{
		for(int i=0; i<100; i++)
		{
			String format = "%1$."+i+"f\n";
			System.out.printf(format , Math.PI);
		}
	}
	public static void main(String[] args)
	{
		doRandom();
		doPI();
	}

}
